package my.design.decorator.up;

/**
 * @author zp
 * @version 1.0
 * @description: 修饰对象的实现类
 * @date 2022/10/10 19:30
 */
public class Ningzetao extends Master {
    public Ningzetao(Person person){
        super(person);
    }
    @Override
    public void sport() {
        super.sport();
        teachSwimming();
    }
    public void teachSwimming(){
        System.out.println("宁泽涛教普通人游泳");
    }
}

